#!/bin/sh

#获取有线网卡名称，如 eth0, enp1s0
eth_name=`cat /proc/net/dev |awk -F ':' '/^e/{print $1}'`

ifconfig $1 down
brctl delif virbr0 $1
brctl delif virbr0 $eth_name
ifconfig virbr0 down
